var read_line = require('readline-sync')
read_line.setDefaultOptions({ prompt: '' })
var read_line = read_line.prompt
let [n, m, k] = read_line().split(' ').map((item) => parseInt(item)) // 转成数字
let arr = read_line().split(' ').map((item) => parseInt(item)) // 得到数组
let result = [...arr]
for (let i = 0; i < m; i++) {
  result = [...result, ...result.reverse()] // 重新赋值resut数组
  if (result.length >= k) {
    console.log(result[k - 1])
  }
}